Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(graph-gateway): simplify subgraph deployments resolution #563

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

LNSD
Copy link
Contributor

@LNSD LNSD commented Jan 26, 2024

The handle_client_query_inner() function performs a series of steps necessary for the subgraph query but not for the deployment query.

  • Update the resolve_subgraph_deployments() function to resolve the deployments associated with a subgraph and filter those not associated with the same chain.
  • Moved the graphql responses module to the gateway-framework crate.
  • Implement IntoResponse for the Error type to use a Result as the handler return type and the ? sigil, improving the code readability.

@LNSD LNSD requested a review from Theodus January 26, 2024 10:46
@LNSD LNSD self-assigned this Jan 26, 2024
@LNSD LNSD force-pushed the lnsd/deployments-resolution-simplification branch from 7fa51d2 to 7747db7 Compare January 26, 2024 10:57
Copy link
Member

@Theodus Theodus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but one bug I think

graph-gateway/src/client_query.rs Outdated Show resolved Hide resolved
Co-authored-by: Theo Butler <theodusbutler@gmail.com>
@LNSD LNSD merged commit e7ec282 into main Jan 26, 2024
1 check passed
@LNSD LNSD deleted the lnsd/deployments-resolution-simplification branch January 26, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants